package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.WxAppidConfig;
import com.vf.admin.miaodong.entity.WxAppletConfigs;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : NemoMeng
 * @Date 2023/12/27 11:58
 */
@Repository
public class WxAppidConifgDao extends BaseDao<WxAppidConfig> {

    public WxAppidConfig getByAppId(String appId){
        ArrayList<Object> paramList = new ArrayList<>();
        StringBuilder sbStr = new StringBuilder("select * from wx_appid_config where app_id = ?");
        paramList.add(appId);
        String sql = sbStr.toString();
        return this.queryObj(sql, paramList, WxAppidConfig.class);
    }
}
